<?php

$rows = array( array('材料编号','材料名称','品牌','规格','单位', '结存数量', '最低库存', '采购数量', '用途', '备注', ) );
if($stuffs) foreach($stuffs as $ware){
	$tmp = array($ware['sno'], $ware['name'], $ware['brand'], $ware['specific'], $ware['unit'], $ware['amount'],
			$ware['cordon'], $ware['cordon']-$ware['amount'], $ware['remark_use'], $ware['remark '] );
	$rows[] = $tmp;
}
Exporter::csv($rows, '补库采购表');

?>
